import App from './App.vue';
import { createApp } from 'vue';

// 引入 router
import router from './router';

// 引入 pinia
import { createPinia } from 'pinia';

// 引入 Ant-Design-Vue
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';

// 引入主题颜色
import { setTheme } from './utils/theme';

// 引入封装的 localstorage 工具
import { localForage } from './localforage';

// 从 localStorage 中获取主题颜色并设置
setTheme(localForage.getItem('theme') || 'light');

createApp(App).use(router).use(createPinia()).use(Antd).mount('#app');
